$('#scroll').html('<%=escape_javascript(render :partial => "volunteers", :locals => { :mission => @mission } )%>');

$('#mission_title').html('<%=escape_javascript(render :partial => "title", :locals => { :mission => @mission } )%>');

$('#form_container').html('<%=escape_javascript(render :partial => "form", :locals => { :mission => @mission } )%>');

$('#mission_status').html('<%=escape_javascript(render :partial => "status", :locals => { :mission => @mission } )%>');

$('#distance_canvas').html('<%=escape_javascript(render :partial => "distance", :locals => { :distance => @mission.farthest, :mission => @mission } )%>');

$('#destroy_mission_container').html('<%=escape_javascript(render :partial => "destroy", :locals => { :mission => @mission } )%>');

$('#mission_completed').html('<%=escape_javascript(render :partial => "completed", :locals => { :mission => @mission } )%>');

init_events();
check_running();
close_info_window();

<% if @mission.farthest %>
	setMapCircle(<%= @mission.farthest %>);
<%end%>

$.instedd.init_components($('#mission_completed'));
$.instedd.init_components($('#form_container'));